package com.demo.iterator_;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;

/**
 * @author gy
 * @date 2022/4/6
 */
public class iterator01 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Iterator<String> iterator = list.iterator();

        while (iterator.hasNext()) {
            Object next = iterator.next();
//            Arrays.copyOf()
        }
        HashSet<Object> objects = new HashSet<>();
    }
}
